//
// file : inet_win.h
// date : 07/05/07
//
#ifndef INET_WIN_H_
#define INET_WIN_H_

#include <winsock2.h>
#include <ws2tcpip.h>

#define sock_error()      WSAGetLastError()
#define tick_count()      GetTickCount()
#define thread_id_()      GetCurrentThreadId()
#define set_event_(h)     SetEvent((HANDLE)h)

// connect() returned value
#define EINPROGRESS       EWOULDBLOCK

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
}
#endif

#endif // INET_WIN_H_

